<template>
  <div class="">
    <el-radio-group v-model="heartbeatRadio" @input="changeheartbeatRadio">
      <el-radio v-for="item in radioArr" :key="item.value" :label="item.value">
        {{ item.name }}
      </el-radio>
    </el-radio-group>
  </div>
</template>

<script>
export default {
  components: {},
  props: {},
  data() {
    return {
      radioArr: [
        {
          name: "心跳包1",
          value: "1",
        },
        {
          name: "心跳包2",
          value: "2",
        },
        {
          name: "心跳包3",
          value: "3",
        },
      ],
      heartbeatRadio: "1",
    };
  },
  created() {},
  mounted() {},
  methods: {
    changeheartbeatRadio(val) {
      this.$emit("changeRadio", this.heartbeatRadio);
    },
  },
};
</script>

<style lang="scss" scoped>
</style>
